package day2017119;

import java.util.Calendar;
import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        //保存生日信息
        String birthday;
        System.out.println("请输入信息：");
        Scanner scanner=new Scanner(System.in);
        birthday=scanner.nextLine();
        /**
         * 2017-11-20-> Long time1 毫秒
         * 2017-11-20-> Long time2 毫秒
         * (time1-time2)/(24*60*60*1000);
         *Study study=new StudyIml()
         * 字符串----simpleDateFormat---Date-----Calendar----
         */
        long time1=0;
        long time2=0;
        //如何将字符串转化为日期：Date对象

        Calendar calendar=Calendar.getInstance();
        //calendar.setTime();
        time1=calendar.getTimeInMillis();

        long days=(time1-time2)/(24*60*60*1000);
    }
}
